package org.edu.modules.kwgl.api;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiOperation;
import org.edu.common.api.vo.Result;
import org.edu.common.aspect.annotation.AutoLog;
import org.edu.modules.kwgl.entity.JwJianzhu;
import org.edu.modules.kwgl.entity.JwJiaoshi;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

@Component
//"edu-jxzy"
@FeignClient(value = "edu-schedule")
public interface IVeJwJxzyFeignClientService {


    @AutoLog(value = "FeignClient-教务课程信息-通过id获取课程名称")
    @GetMapping(value = "/jxzy/jwKecheng/getNameById")
    String getKcNameById(@RequestParam(name="id",required=true) int id);

    @AutoLog(value = "FeignClient-教务课程信息-通过课程名称获取id")
    @GetMapping(value = "/jxzy/jwKecheng/getIdByName")
    Integer getIdByName(@RequestParam(name="name",required=true) String name);

    @AutoLog(value = "FeignClient-教务课程信息-通过id获取课程总分")
    @GetMapping(value = "/jxzy/jwKecheng/getKsfsById")
    int getKcKsfsById(@RequestParam(name="id",required=true) int id);

    @AutoLog(value = "FeignClient-教务教室信息-通过id获取教室信息")
    @GetMapping(value = "/jxzy/jwJiaoshi/getById")
    Result<JSONObject> getJsById(@RequestParam(name="id",required=true) int id);



    @AutoLog(value = "FeignClient-教务教室信息-通过名称获取教室信息")
    @GetMapping(value = "/jxzy/jwJiaoshi/getJsListByName")
    List<JwJiaoshi> getJsListByName(@RequestParam(name="name",required=true) String name);

    @AutoLog(value = "FeignClient-建筑信息-通过名称获取建筑信息")
    @GetMapping(value = "/jxzy/jwJianzhu/getJzListByName")
    List<JwJianzhu> getJzListByName(@RequestParam(name="name",required=true) String name);

}
